# -*- coding:utf-8 -*-
from django.shortcuts import render
from django.http import HttpResponse


# Create your views here.

def index(request):
    return HttpResponse("Hello, world")

def detail(request, question_id):
    return HttpResponse("你查看的问题是{0}".format(question_id))

def results(request, question_id):
    response = "你查看的结果是{0}."
    return HttpResponse(response.format(question_id))

def vote(request, question_id):
    return HttpResponse("你投票为{0}".format(question_id))